package PageFactory;

import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;

public class googleSearchResultPage {
	
	@FindBy(xpath = "//*[@id='fll']/a[1]")
	WebElement googleHomeButton;
	
	//Google Home link at bottom of the search result page
	@FindBy(xpath = "/html/body[@id='gsr']/div[@id='main']/div[2]/div[@id='cnt']/div[@class='mw'][3]/div[@id='foot']/div[@id='fll']/a[1]")
	WebElement googleHomeLink;
	
	
	public void returnTogoogleHomepage ()
	{
		//System.out.println("You returned to the home page.");
		googleHomeButton.click();
	}
}
